﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Hotel.NhanVien
{
    public partial class QuanLiNhanVien : Form
    {
        public QuanLiNhanVien()
        {
            InitializeComponent();
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            this.panelQLNV.Controls.Clear();
            ThemNhanVien addStaff = new ThemNhanVien();
            addStaff.TopLevel =false;
            addStaff.FormBorderStyle = FormBorderStyle.None;
            this.panelQLNV.Controls.Add(addStaff);
            addStaff.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.panelQLNV.Controls.Clear();
            TimKiem searchStaff = new TimKiem();
            searchStaff.TopLevel = false;
            searchStaff.FormBorderStyle = FormBorderStyle.None;
            this.panelQLNV.Controls.Add(searchStaff);
            searchStaff.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.panelQLNV.Controls.Clear();
            DanhSachNhanVien listStaff = new DanhSachNhanVien();
            listStaff.TopLevel = false;
            listStaff.FormBorderStyle = FormBorderStyle.None;
            this.panelQLNV.Controls.Add(listStaff);
            listStaff.Show();
        }
    }
}
